from selenium import webdriver
from selenium.webdriver.common.by import By
import os.path
import time

path = os.path.join(os.path.abspath(os.path.dirname('第1题')), 'html','注册A.html')
driver = webdriver.Chrome()
driver.get(path)

userA = driver.find_element(By.ID,'userA')
userA.send_keys('a123')

passwordA = driver.find_element(By.ID,'passwordA')
passwordA.send_keys('aa1234')

telA = driver.find_element(By.ID,'telA')
telA.send_keys('18871185432')

emailA = driver.find_element(By.ID,'emailA')
emailA.send_keys('148256@qq.com')

register_user =driver.find_element(By.XPATH,'//*[@id="zc"]/fieldset/button')
register_user.click()

time.sleep(3)
driver.quit()
